package com.beidouapp.domain.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import com.beidouapp.domain.pojo.AuditLog.ChannelType;


@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.PARAMETER, ElementType.METHOD})
public @interface Audit {

	/**
	 * The action to write to the log when we audit this method.  Value must be defined.
	 * @return the action to write to the logs.
	 */
	String action();
    
    /** 渠道:web/app/WeChat等 */
    ChannelType channel() default ChannelType.im;
    
    /** 操作成功对应描述模板键值*/
    String[] successParamKeys() default {};
    String[] successParams() default {};
    
    /** 操作失败对应描述模板键值*/
    String[] errorParamKeys() default {};
    String[] errorParams() default {};
}
